/**
 * @param {string} s
 * @return {number}
 */
 var maxPower = function(s) {
    let mun = 1 , max = 1 
    for(let i = 0; i < s.length; i++){
        if(s[i] === s[i-mun]){
            mun++
            max = Math.max(max,mun)
        }else{
            mun = 1
        }
    }
    return max
};
console.log(maxPower('abbcccddddeeeeedcba'))